package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrGroupVo;
import com.atguigu.gulimall.product.vo.CategoryGroupAttrRelationAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wangliang
 * @email wangliang@gmail.com
 * @date 2023-11-07 21:19:43
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAllRelationAttr(Long attrGroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrGroupId);

    void deleteAttrGroupRelationAttr(List<AttrGroupVo> attrGroupVo);

    void addRelationGroupAttr(List<AttrGroupVo> list);

    List<CategoryGroupAttrRelationAttrVo> getCategoryGroupAttrRelationAttr(Long catelogId);
}

